<%--
  @author  lk
  DateTime: 2020/6/23 14:42
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>成功</title>
</head>
<body>
<%
    String flag = (String) request.getAttribute("flag");
    String msg = (String) request.getAttribute("msg");
%>
<h2 style="text-align: center"><%=flag%></h2>
<%
    if ("登录失败".equals(flag)) {
%>
<div id="wel_login_msg"><%=msg%></div>
<h2 style="text-align: center"><a href="login.jsp">重新登录</a></h2>
<%
} else if ("登录成功".equals(flag)) {
%>
<h2 style="text-align: center"><a href="user">查看个人信息</a></h2>
<h3 style="text-align: center"><a href="logout.jsp">退出登录</a></h3>

<%
    }
%>
</body>
</html>
